clone-class allows to clone already made class definitions to another instruments. clone-class can also be used to make the actual definitions if you choose to keep the source material of you composition in 'ad hook' classes.
This clones the symbol class of bass to synth in all sections. After evaluating all sections of synth contain the same symbols as all sections of bass.
(clone-class symbol bass synth)
To introduce modifications to some sections you can use the exception option. The following redefines the sections sect-a and sect-b, otherwise all classes are cloned as is.
Target instrument can be a single instrument or a list of instrument names. After the following synth1 and synth2 share the same classes for all sections as the synth, except the section a and b which are redefined.
If you want 2 exact copies of the original, leave the exceptions part out.
To clone multiple classes to multiple targets replace the single class name as a list of class names. The following clones the symbol, velocity and tonality classes of bass to synth1 and synth2.
To clone all classes use :all keyword instead of the class. After cloning the same bingings for all the symbol, length, tonality, zone, velocity, channel, program, controller and tempo classes exists also for the target instrument.
In the following all classes, and all sections and classes from bass are cloned to synth1 and synth2.
(clone-class :all bass (synth1 synth2))
To introduce changes while cloning use the exceptions option as earlier to redefine those classes you want to differ.